home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / asm32.zip / DPMI.DOC < prev    next >
Text File  |  1995-10-19  |  1KB  |  32 lines

  1. DPMI.DOC
  2.  
  3.  
  4. The STARTDP startup code switches the system into 32-bit protected mode
  5. and calls your main program MAIN32.  Your program should be written using
  6. my MODEL.INC, CODESEG.INC and DATASEG.INC include files as shown in my
  7. dumb example HELLO32.ASM.  Most DOS functions work, the common BIOS functions
  8. work too, with 32-bit addresses used in place of 16-bit addresses.
  9.  
  10. Memory allocation is most easily done with the GetMemNear, RelMemNear and
  11. ResMemNear subroutines which Allocate, Free and Re-size near memory blocks,
  12. respectively.  You will find these subroutines in the DPMI32.ASM source
  13. code.
  14.  
  15. If you need to re-assemble the STARTDP source code, use TASM (NOT MASM)
  16. and use the /m2 command-line switch.
  17.  
  18. Assemble your source code by copying or renaming the DPMI.INC file to
  19. MODEL.INC and assemble normally with MASM 5.0 or newer, or TASM 2.0 or
  20. newer.
  21.  
  22. Linking your program is simple:
  23.  
  24. TLINK /3 STARTDP+main32;
  25.  
  26. -or-
  27.  
  28. LINK STARTDP+main32;
  29.  
  30. A program made with STARTDP requires a DPMI host, such as Windows,
  31. OS/2, 386MAX version 7 or newer, or QDPMI.
  32.